/**
 * @file
 * @auth jinguangguo
 * @date 2017/01/19
 */

import ajax from '../../../../grsc-base/util/ajax';

export default {

    /**
    * 当前委托
    * @param param
    * @returns {*}
    */
    tradeCoinCurrentList(param = {}) {
       return ajax.get('/exchangeApi/match/match-order/current', {
           data: param
       });
    },

    /**
     * 历史委托
     * @param param
     * @returns {*}
     */
    tradeCoinHistoryList(param = {}) {
        return ajax.get('/exchangeApi/match/match-order/history', {
            data: param
        });
    },

    /**
     * 委托详情
     * @param param
     * @returns {*}
     */
    tradeDetail(param = {}) {
        return ajax.get('/exchangeApi/match/match-order/match-record', {
            data: param
        });
    },

    /**
     * 撤销单子
     * @param param
     * @returns {*}
     */
    tradeCoinCancelByid(param = {}) {
        return ajax.get('/exchangeApi/match/match-order/cancel', {
            data: param
        });
    }

};